
<br>
<a href='<?php echo ADMINBASEURL;?>users/view/client'>Clients</a>
|
<a href='<?php echo ADMINBASEURL;?>users/view/staff'>Staffs</a>
|
<a href='<?php echo ADMINBASEURL;?>users/view/manager'>Managers</a>
|
<a href='<?php echo ADMINBASEURL;?>users/view/admin'>Admin</a>

<font color="blue"> if client user is not admin filter list by warehouse
</font>


<!-- End Header -->

<!-- Container -->
<div id="container">
	<div class="shell">

		<!-- Small Nav -->
		<div class="small-nav">
			<a href="#">Dashboard</a> <span>&gt;</span> Current Users
		</div>
		<?php
		include 'includes/message.php';
		?>
		<br />
		<!-- Main -->
		<div id="main">
			<div class="cl">&nbsp;</div>

			<!-- Content -->
			<div id="content">

				<!-- Box -->
				<div class="box">
					<!-- Box Head -->
					<div class="box-head">
						<h2>Add New User</h2>
					</div>
					<!-- End Box Head -->

					<form action="<?php echo ADMINBASEURL."users/save/"; ?>"
						method="post">

						<!-- Form
Full Name	Username	Email	Usertype	Warehouse	Created By
						-->
						<div class="form">
							<p>
								<label>Warehouse <span>(Required Field)</span> </label> <select
									class="field size3" name="warehouse">
									<?php
									foreach ($warehouseList->result() as $wh)
									{
										echo "<option value='".$wh->id."'>".$wh->name."</option>";
									}
									?>
								</select>
							</p>
							<p>
								<label>Usertype<span>(Required Field)</span> </label> <select
									class="field size3" name='usertype'>
									<option value="C">Client</option>
									<option value="S">Staff</option>
									<option value="M">Manager</option>
									<option value="A">Admin</option>
								</select>
							</p>
							<p>
								<label>Username <span>(Required Field)</span> </label> <input
									type="text" name='username' class="field size5" maxlength="100"
									value='<?php echo ($user == null)?'':$user->username; ?>' />
							</p>
							<p>
								<label>Password <span>(Required Field)</span> </label> <input
									type="text" name='password' class="field size5" maxlength="100"
									value='<?php echo ($user == null)?'':$user->password; ?>' />
							</p>
							<p>
								<label>First Name <span>(Required Field)</span> </label> <input
									type="text" name='firstname' class="field size5"
									maxlength="100"
									value='<?php echo ($user == null)?'':$user->firstname; ?>' />
							</p>
							<p>
								<label>Last Name <span>(Required Field)</span> </label> <input
									type="text" name='lastname' class="field size5" maxlength="100"
									value='<?php echo ($user == null)?'':$user->lastname; ?>' />
							</p>
							<p>
								<label>Middle Name <span>(Required Field)</span> </label> <input
									type="text" name='middlename' class="field size5"
									maxlength="100"
									value='<?php echo ($user == null)?'':$user->middlename; ?>' />
							</p>
							<p>
								<label>Email <span>(Required Field)</span> </label> <input
									type="text" name='email' class="field size5" maxlength="100"
									value='<?php echo ($user == null)?'':$user->email; ?>' />
							</p>
						</div>
						<!-- End Form -->

						<!-- Form Buttons -->
						<div class="buttons">
							<input type="submit" class="button" value="s" />
						</div>
						<!-- End Form Buttons -->
					</form>
				</div>
				<!-- End Box -->



			</div>
			<!-- End Content -->

			<!-- Sidebar -->
			<div id="sidebar">


				<!-- End Box -->
			</div>
			<!-- End Sidebar -->

			<div class="cl">&nbsp;</div>
		</div>
		<!-- Main -->
	</div>
</div>
<!-- End Container -->






